package webView;

import javafx.fxml.Initializable;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.VBox;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import sample.Main;

import java.net.URL;
import java.util.Objects;
import java.util.ResourceBundle;

public class WebViewCtrl implements Initializable{
    public WebView discoverWebView;
    public AnchorPane anchorPane;
    public VBox webViewVbox;

    @Override
    public void initialize(URL url, ResourceBundle resourceBundle) {
        discoverWebView=new WebView();
        WebEngine engine = discoverWebView.getEngine();
        engine.load(Objects.requireNonNull(Main.class.getClassLoader().getResource("helpInfo.html")).toString());
        discoverWebView.setPrefHeight(1000);
        discoverWebView.setPrefWidth(1000);
        webViewVbox.getChildren().add(discoverWebView);
    }
}
